<template>
  <div id="app">
    <div id="nav">
      <keep-alive>
        <router-view v-if="$route.path === '/'" />
      </keep-alive>
      <router-view v-if="$route.path !== '/'" />
    </div>
  </div>
</template>
<script>
export default {
  name: 'app'
}
</script>

<style lang="less"></style>
